<?php

/**
 * Template for one comment block
 * This is from the previous project and not
 * for the currenct Question/Answer comments feature
 * This can be useful if we add some other types
 * of content like blog posts or articles or videos
 * 
 */
class tplComments extends StudyBuddy\Template\Template
{
	protected static $vars = array(
	'_id' => 0,
	'av' => '',
	'usr' => '',
	'ts' => '',
	'dt' => '',
	'b' => '',
	'replies' => '',
	'reply' => 'Reply',
	'replyLink' => '' // id of parent if this is a reply set only for replies
	);

	/**
	 * <a href="/index.php?a=reply&amp;comid=%1$s&amp;parentid=%9$s"><span class="reply">%8$s</span></a>
	 * @var unknown_type
	 */
	protected static $tpl = '
	<div class="comment" id="com_%1$s">
		<div class="comdiv">
			<div class="poster">
				<span class="avatar">
						<img src="%2$s" width="48" height="48" class="uavatar" alt="%4$s" />
				</span>
				<span class="username">%3$s</span>
			</div>
			<div class="com_time" title="%5$s" ts="%4$s">%5$s</div>
			<div class="c_b">%6$s</div>
			<div class="com_ft">
				%9$s
			</div>
		</div>
		%7$s
	</div>';
}


?>